import axios from "axios";
const service = axios.create({
  baseURL: "http://120.24.171.137:1337/", // url = base url + request url
  // withCredentials: true, // send cookies when cross-domain requests
  timeout: 50000, // request timeout
});
service.interceptors.request.use((config) => {
  config.headers.Authorization =
    "Bearer " +
    "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MTAsImlhdCI6MTY1NjM3OTAzMywiZXhwIjoxNjU4OTcxMDMzfQ.9k4G40IbRO0Pcpw-mT8YIUBY53X5JXqcsFvAkGSvMnA";
  return config;
});

export default service;
